from datetime import datetime

from src.baseapp.model import db, CustomDbModel


class SignalingModel(CustomDbModel):

    __tablename__ = 'signaling'

    # 信令id
    signaling_id = db.Column(db.Integer, primary_key=True)

    # 信令名称
    signaling_name = db.Column(db.String(25), nullable=False)

    # 信令类型 1为注册 2为注销 3为心跳 4为心跳回复 5为信令回复
    signaling_type = db.Column(db.Integer, nullable=False)

    # 信令报文
    signaling_message = db.Column(db.Text(500), nullable=False)

    # 信令参数
    signaling_parameter = db.Column(db.Text(500), nullable=False)
